<?php

namespace App\Models;

class WechatTemplateMsg extends BaseModel
{
    protected $fillable = [
        'tpl_id', 'tpl_name', 'tpl_content', 'openid', 'name', 'result', 'state', 'msg', 'msg_id',
    ];
    protected $casts = [
        'result'      => 'json',
        'tpl_content' => 'json',
    ];

    public function msgs()
    {
        return $this->belongsTo(WechatMsgList::class);
    }
}
